package com.dk.test;

import com.dk.task.MyThread04;

/**
 * 测试线程礼让
 */
public class Demo04 {
    public static void main(String[] args) {
        MyThread04 myThread04 = new MyThread04();
        Thread t1 = new Thread(myThread04, "线程1");
        Thread t2 = new Thread(myThread04, "线程2");

        t1.start();
        t2.start();
    }
}
